/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace DaveSexton.DocProject.DocSites
{
	internal sealed class StringList : KeyedCollection<int, string>
	{
		#region Public Properties
		#endregion

		#region Private / Protected
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="StringList" /> class.
		/// </summary>
		public StringList(IEnumerable<string> items)
		{
			foreach (string s in items)
				Add(s);
		}
		#endregion

		#region Methods
		protected override int GetKeyForItem(string item)
		{
			return item.ToUpper(System.Globalization.CultureInfo.CurrentCulture).GetHashCode();
		}
		#endregion
	}
}
